-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Readthedocs builds #577
Conversation
Codecov Report
@@ Coverage Diff @@
## master #577 +/- ##
=======================================
Coverage 95.35% 95.35%
=======================================
Files 92 92
Lines 4305 4305
Branches 422 422
=======================================
Hits 4105 4105
Misses 140 140
Partials 60 60 Continue to review full report at Codecov.
|
The proposed change seems to have resolved the original issue. The However, the
|
Possible issue on Stackoverflow: python setuptools Solutions:
|
The first solution works locally. However, I now get yet another error when running Sphinx:
|
This seems to be this issue: sphinx-doc/sphinx#5076. It's fixed in Sphinx version 1.7: sphinx-doc/sphinx@b553c23. I can also confirm that it's not reproducible on Python 3.6. |
Removing the Sphinx version constraint from However, running the Sphinx command gives yet another error:
|
According to https://www.sphinx-doc.org/en/master/extdev/deprecated.html, Replacing the relevant import in doc/source/_extensions/init.py makes the above mentioned error go away. However, there's another issue that comes up afterwards:
|
The above issue seems to be a problem with our doc/source/_extensions/init.py file, in particular its |
Readthedocs build successfully completed: https://readthedocs.org/projects/simphony-remote/builds/15383366/ (with lots of warnings) |
The CI failure at https://github.com/simphony/simphony-remote/runs/4336809201 is an issue with doc/source/conf.py. It can be fixed by changing |
|
From the changelog of Sphinx release 1.7.0:
|
CI now gives the following error:
|
This can be resolved by removing some documenter classes from simphony-remote/doc/source/_extensions/__init__.py Lines 561 to 567 in 49e06a1
This seems to resolve the above issue. |
There's a new error message saying
|
This can be worked around by removing the use of the deprecated methods |
|
I'll stop working on this PR for now |
I'm planning to revive this PR again |
From https://www.sphinx-doc.org/en/master/extdev/deprecated.html it looks like simphony-remote/doc/source/_extensions/__init__.py Lines 170 to 176 in 6231b87
|
Having found simphony-remote/doc/source/_extensions/generate.py Lines 156 to 158 in 6231b87
and the referenced Stack Overflow question, I realised that probably the doc/source/_extensions/__init__.py and doc/source/_extensions/generate.py files are purely for avoiding documentation generation for imported members.
According to the Sphinx changelog for Release 1.6.1, this is now the default behaviour for the latest version. Consequently, we can get rid of these two modules safely |
The documentation build succeeds on both CIs, as well as on Readthedocs. This PR is now ready for review |
Given that this set of changes is fairly simple and contained, I propose merging this PR now (and addressing potential issues in follow-up PRs). |
Fix the Readthedocs builds.
traitlet-documenter
dependency of Simphony Remote in favour ofautodoc-traits
. The GitHub repo of the former is archived, it only supportssetuptools
version 58.0.1 or older, and it makes the documentation build fail on Readthedocs. The licence of these two libraries is the same: BSD 3-Clause License (see https://github.com/jupyterhub/autodoc-traits/blob/main/LICENSE).doc/source/conf.py
andsetup.py
.